import Vue from 'vue'
import '/src/assets/js/china.js'
import ElementUI from 'element-ui'
import VueRouter from 'vue-router'
import 'element-ui/lib/theme-chalk/index.css';

import App from './App.vue'
import HelloWorld from "./components/HelloWorld";
import NationWideStatus from "./Pages/StatusMonitor/NationWideStatus";
import TrainStatus from "./Pages/StatusMonitor/TrainStatus";
import DataView from "./Pages/StatusMonitor/DataView";
import EquipStatus from "./Pages/StatusMonitor/EquipStatus";

import ThresholdWarning from "./Pages/FaultWarning/ThresholdWarning";
import MutationWarning from "./Pages/FaultWarning/MutationWarning";
import TrendWarning from "./Pages/FaultWarning/TrendWarning";

import Action from "./Pages/Management/Action";
import Equipment from "./Pages/Management/Equipment";
import EvaluationIndex from "./Pages/Management/EvaluationIndex";
import Knowledge from "./Pages/Management/Knowledge";
import SensorConfig from "./Pages/Management/SensorConfig";
import Train from "./Pages/Management/Train";

import Diagnosis from "./Pages/FaultDiagnose/Diagnosis";
import FaultInfo from "./Pages/FaultDiagnose/FaultInfo";
import Report from "./Pages/FaultDiagnose/Report";

import User from "./Pages/System/User";

import MaintainOprimization from "./Pages/Desicion/MaintainOprimization";
import RepairOrder from "./Pages/Desicion/RepairOrder";

import DateFile from "./Pages/DataManagement/DateFile";
import FaultData from "./Pages/DataManagement/FaultData";

import AlgorithmConfig from "./Pages/Algorithm/AlgorithmConfig";
import AlgorithmServer from "./Pages/Algorithm/AlgorithmServer";
import Model from "./Pages/Algorithm/Model";
import TrainTest from "./Pages/Algorithm/TrainTest";

Vue.use(VueRouter)
Vue.use(ElementUI);
Vue.config.productionTip = false

const routes = [
  { path: '/', component: HelloWorld },

  { path: '/StatusMonitor/NationWideStatus', component: NationWideStatus },
  { path: '/StatusMonitor/TrainStatus', component: TrainStatus },
  { path: '/StatusMonitor/DataView', component: DataView },
  { path: '/StatusMonitor/EquipStatus', component: EquipStatus },

  { path: '/FaultWarning/ThresholdWarning', component: ThresholdWarning },
  { path: '/FaultWarning/MutationWarning', component: MutationWarning },
  { path: '/FaultWarning/TrendWarning', component: TrendWarning },

  { path: '/Management/Action', component: Action },
  { path: '/Management/Equipment', component: Equipment },
  { path: '/Management/EvaluationIndex', component: EvaluationIndex },
  { path: '/Management/Knowledge', component: Knowledge },
  { path: '/Management/SensorConfig', component: SensorConfig },
  { path: '/Management/Train', component: Train },

  { path: '/FaultDiagnose/Diagnosis', component: Diagnosis },
  { path: '/FaultDiagnose/FaultInfo', component: FaultInfo },
  { path: '/FaultDiagnose/Report', component: Report },

  { path: '/System/User', component: User },

  { path: '/Desicion/MaintainOprimization', component: MaintainOprimization },
  { path: '/Desicion/RepairOrder', component: RepairOrder },

  { path: '/DataManagement/DateFile', component: DateFile },
  { path: '/DataManagement/FaultData', component: FaultData },

  { path: '/Algorithm/AlgorithmConfig', component: AlgorithmConfig },
  { path: '/Algorithm/AlgorithmServer', component: AlgorithmServer },
  { path: '/Algorithm/Model', component: Model },
  { path: '/Algorithm/TrainTest', component: TrainTest },
]

//创建路由器实例，引入routes变量作为路由
const router = new VueRouter({
  routes,
  //mode: 'history'
})

new Vue({
  render: h => h(App),
  router
}).$mount('#app')
